<?php

/**
 * StaticFile actions.
 *
 * @package    5
 * @subpackage StaticFile
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class StaticFileActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeShow(sfWebRequest $request)
  {
    $roles = array(
      'about',
      'pay',
      'coin',
      'contact',
      'affiliate',
      'agreement',
      'link'
    );
    $role = $request->getParameter('role');
    $this->forward404Unless(in_array($role, $roles));
    $this->setTemplate($role);
  }
}
